package com.gin.pixiv.enums

import com.fasterxml.jackson.annotation.JsonValue
import com.gin.pixiv.factory.QueryParameter

/**
 * 表情贴图
 * 图片地址为： https://s.pximg.net/common/images/stamp/generated-stamps/${id}_s.jpg
 * @author : ginstone
 * @version : v1.0.0
 * @since : 2022/10/17 14:13
 */
enum class PixivStamp(@JsonValue private val id: Int) : QueryParameter {
    STAMP_101(101),
    STAMP_102(102),
    STAMP_103(103),
    STAMP_104(104),
    STAMP_105(105),
    STAMP_106(106),
    STAMP_107(107),
    STAMP_108(108),
    STAMP_109(109),
    STAMP_110(110),
    STAMP_201(201),
    STAMP_202(202),
    STAMP_203(203),
    STAMP_204(204),
    STAMP_205(205),
    STAMP_206(206),
    STAMP_207(207),
    STAMP_208(208),
    STAMP_209(209),
    STAMP_210(210),
    STAMP_301(301),
    STAMP_302(302),
    STAMP_303(303),
    STAMP_304(304),
    STAMP_305(305),
    STAMP_306(306),
    STAMP_307(307),
    STAMP_308(308),
    STAMP_309(309),
    STAMP_310(310),
    STAMP_401(401),
    STAMP_402(402),
    STAMP_403(403),
    STAMP_404(404),
    STAMP_405(405),
    STAMP_406(406),
    STAMP_407(407),
    STAMP_408(408),
    STAMP_409(409),
    STAMP_410(410),
    ;

    /**
     * 表情图对应的图片地址
     */
    fun getUrl() = "https://s.pximg.net/common/images/stamp/generated-stamps/${id}_s.jpg";
    override fun getParameterValue(): String? = id.toString()
}
